pub trait Summary{
    fn summarize(&self)->String{
        String::from("Read More")
    }
}

pub struct Pic{
    pub path: String,
    pub size: u32,
    pub uploader: String,
}

impl Summary for Pic{}

pub struct NewsArticle {
    pub headline: String,
    pub location: String,
    pub author: String,
    pub content: String,
}

impl Summary for NewsArticle{
    fn summarize(&self) -> String {
        format!("{}: {}", self.headline, self.author)
    }
}